package com.ruoyi.project.jiaqin.supplycomment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.jiaqin.supplycomment.mapper.SupplyCommentMapper;
import com.ruoyi.project.jiaqin.supplycomment.domain.SupplyComment;
import com.ruoyi.project.jiaqin.supplycomment.service.ISupplyCommentService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 供应评论Service业务层处理
 * 
 * @author admin
 * @date 2021-02-22
 */
@Service
public class SupplyCommentServiceImpl implements ISupplyCommentService 
{
    @Autowired
    private SupplyCommentMapper supplyCommentMapper;

    /**
     * 查询供应评论
     * 
     * @param id 供应评论ID
     * @return 供应评论
     */
    @Override
    public SupplyComment selectSupplyCommentById(String id)
    {
        return supplyCommentMapper.selectSupplyCommentById(id);
    }

    /**
     * 查询供应评论列表
     * 
     * @param supplyComment 供应评论
     * @return 供应评论
     */
    @Override
    public List<SupplyComment> selectSupplyCommentList(SupplyComment supplyComment)
    {
        return supplyCommentMapper.selectSupplyCommentList(supplyComment);
    }

    /**
     * 新增供应评论
     * 
     * @param supplyComment 供应评论
     * @return 结果
     */
    @Override
    public int insertSupplyComment(SupplyComment supplyComment)
    {
        return supplyCommentMapper.insertSupplyComment(supplyComment);
    }

    /**
     * 修改供应评论
     * 
     * @param supplyComment 供应评论
     * @return 结果
     */
    @Override
    public int updateSupplyComment(SupplyComment supplyComment)
    {
        return supplyCommentMapper.updateSupplyComment(supplyComment);
    }

    /**
     * 删除供应评论对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSupplyCommentByIds(String ids)
    {
        return supplyCommentMapper.deleteSupplyCommentByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除供应评论信息
     * 
     * @param id 供应评论ID
     * @return 结果
     */
    @Override
    public int deleteSupplyCommentById(String id)
    {
        return supplyCommentMapper.deleteSupplyCommentById(id);
    }
}
